FROM centos:7

MAINTAINER Mark.wei <marks@126.com>

RUN yum install -y gcc python python-dev python-devel python-pip zlib-devel libjpeg-devel


ADD . /app/

RUN python /app/installer/get-pip.py
RUN pip install setuptools


RUN chmod +x /app/deploy/run.sh


RUN pip install -r /app/requirements.txt

VOLUME ["/data"]
EXPOSE 80

CMD ["/app/deploy/run.sh"]
